package com.totem.product.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.totem.base.mybatis.model.AbstractEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = true)
@Data
@Builder
@TableName("t_subscribe")
public class TSubscribe extends AbstractEntity {
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;
    @TableField("subscribe_level")
    private String subscribeLevel;
    @TableField("subscribe_days")
    private Integer subscribeDays;
    @TableField("subscribe_name")
    private String subscribeName;
    @TableField("subscribe_name_cn")
    private String subscribeNameCn;
    @TableField("threshold")
    private BigDecimal threshold;
    @TableField("daily_rate_return")
    private BigDecimal dailyRateReturn;
}
